package com.shijichaoxing.dao;

import com.shijichaoxing.entity.Admin;

import java.util.List;

/**
 * @author zj
 */

public interface AdminDao {
    List<Admin> login(Admin admin);

    boolean addAdmin(Admin admin);

    boolean updateAdmin(Admin admin);

    Admin findAdminById(Integer id);

    List<Admin> findAdminByPage(int start, int limit, String indexName, boolean isAsc);

    int countAll();

    boolean deleteById(Integer id);

}
